package cn.highedu.spring;

import org.springframework.stereotype.Component;

@Component // 声明把当前类的对象交给Spring IOC容器管理
public class DemoBean {
    public void hello() {
        System.out.println("Hello Spring");
    }
}
